import sqlite3

conn = sqlite3.connect("../db.sqlite3")  # 打开或创建数据库
c = conn.cursor()  # 获取游标
sql = '''
create table data_Image
(
    ID integer not null,
    Accessories_ID text not null,
    Data text,
    constraint image_pk
        primary key (ID,Accessories_ID)
);


'''
c.execute(sql)  # 执行sql语句
conn.commit()  # 提交数据库操作
conn.close()
print("ok")
